#!/bin/bash
FileName="./YYPT160319FILE.txt"
TotalLength="7"
TranDate=20`expr substr "$FileName" "$TotalLength" 6`;
echo "TranDate:$TranDate"

PreDate="20160323"

echo "PreDate:$PreDate"

if expr $TranDate \< $PreDate > /dev/null
then
    echo "DEBUG1"
else
    echo "DEBUG2"
fi

